package com.project.common.commenReturn;

import lombok.Data;

public class Result<T> {
    private  String code;
    private T data;
    private boolean isSuccess;

    public Result() {
    }

    public Result(String code, T data, boolean isSuccess) {
        this.code = code;
        this.data = data;
        this.isSuccess = isSuccess;
    }

    public Result(String code, boolean isSuccess) {
        this.code = code;
        this.isSuccess = isSuccess;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }
}
